package Work0518;

import java.util.Scanner;

public class TeacherTest {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		try {
			String a = "武汉大学";
			String b = "黑猪";
			System.out.println("输入年龄:");
			int c = in.nextInt();
			Teacher test = new Teacher(c, a, b);
			test.introduce();
			test.attendClass();
		} catch (Exception e) {
			System.out.println("错误!!!");
			e.printStackTrace();
		}
	}

}
